package com.mvc.web;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author wzm
 * @create 2023-06-26 10:30
 */

//之前我们一个功能一个Servlet 我们想要实现 一个Servlet包含了相关所有的功能
@WebServlet("/dog/*")
public class DogServlet extends BaseServlet {

    //新增 add
    protected void add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String username = 
                request.getParameter("username");
        System.out.println("username = " + username);
    }

    //删除
    protected void delete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }


    //修改
    protected void update(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }


    //查询单个
    protected void findOne(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }


    //查询全部
    protected void findAll(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
